package com.galen.chapter1.repository;

import com.galen.chapter1.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author GalenGao
 * @version Id: UserRepository.java, v 0.1 2022/2/24 12:18 上午 GalenGao Exp $$
 */
@Repository
public interface UserRepository extends JpaRepository<User,Long>, JpaSpecificationExecutor<User> {

   /**
    * like 查询
    * @param name
    * @return
    */
  List<User> findAllByNameLike(String name);
}
